public class PathPlanner {
    private PathPlanningStrategy strategy;

    public void setStrategy(PathPlanningStrategy strategy) {
        this.strategy = strategy;
    }

    public void executePlan() {
        if (strategy != null) {
            strategy.planPath();
        }
    }
}